<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>搜索书籍 - ${searchTitle}</title>
</head>
<body>
<h1>搜索书籍结果 - <c:out value="${searchTitle}"/></h1>
<c:if test="${not empty message}">
    <p style="color:red;">${message}</p>
</c:if>
<c:if test="${not empty bookList}">
    <ul>
        <c:forEach var="book" items="${bookList}">
            <li>
                <p>Title: ${book.title}</p>
                <p>Author: ${book.author}</p>
                <p>Book ID: ${book.bookID}</p>
                <p>Book Number: ${book.booknum}</p>
                <p>Publisher ID: ${book.publisherID}</p>
                <p>TypeID: ${book.typeID}</p>
                <p>Quantity: ${book.quantity}</p>
            </li>
        </c:forEach>
    </ul>
</c:if>
<c:if test="${empty bookList && empty message}">
    <p>未找到与搜索词“${searchTitle}”相关的书籍。</p>
</c:if>
</body>
</html>